-- GENERATED SPELL FOR [Empoor's Bodyguard] --


function spell0_18483(pUnit, Event) --@Demoralizing Shout,Self--
pUnit:FullCastSpellOnTarget(13730,pUnit)
pUnit:RegisterEvent('Sorts_18483', 30250, 1)
end

function spell1_18483(pUnit, Event) --@Rend,n/a--
pUnit:FullCastSpellOnTarget(11977,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18483', 15000, 1)
end

function Sorts_18483(pUnit, Event)
local choix_sorts_18483 = math.random(0, 1)
if choix_sorts_18483 == 0 then
pUnit:RegisterEvent('spell0_18483', 1, 1)
end
if choix_sorts_18483 == 1 then
pUnit:RegisterEvent('spell1_18483', 1, 1)
end
end

function mob18483_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18483', math.random(1500, 3000), 1)
end

function mob18483_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18483_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18483_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18483, 1, 'mob18483_Action')
RegisterUnitEvent(18483, 2, 'mob18483_Leave')
RegisterUnitEvent(18483, 3, 'mob18483_Kill')
RegisterUnitEvent(18483, 4, 'mob18483_Die')
